package IC.lir;

import IC.lir.instructions.Label;

/**
 * LIRStringLiteral:
 * represent LIR StringLiteral object
 *
 */
public class LIRStringLiteral extends LIRObject {
	
	private static int uniqueID = 1;
	private String Text;
	
	//C'tor
	public LIRStringLiteral(String Text) {
		super();
		this.Label = new Label("str" + (uniqueID++));
		this.Text = Text;
	}
	
	public String getText() {
		return Text;
	}
	
	@Override
	public String toString() {
		return this.Label + ": " + Text;
	}
		
}
